class CategoryInfoModel {
  int? id;
  String? name;
  String? icon;
  String? iconLarge;
  String? iconMini;
  String? path;
  int? headOccupy;
  int? monitorStatus;
  int? isWebView;
  int? isOpenBig;

  // bool isLarge;

  CategoryInfoModel(
      {this.id,
      this.name,
      this.icon,
      this.iconLarge,
      this.path,
      this.headOccupy,
      this.iconMini,
      this.isWebView,
      this.isOpenBig,
      this.monitorStatus});

  factory CategoryInfoModel.fromJson(Map<String, dynamic> json) =>
      CategoryInfoModel(
        id: json['id'] as int?,
        name: json['name'] as String?,
        icon: json['icon'] as String?,
        iconLarge: json['icon_large'] as String?,
        path: json['path'] as String?,
        iconMini: json['icon_mini'] as String?,
        headOccupy: json['head_occupy'] as int?,
        isWebView: json['is_web_view'] as int?,
        isOpenBig: json['is_open_big'] as int?,
        monitorStatus: json['monitor_status'] as int?,
      );

  Map<String, dynamic> toJson() => {
        'id': id,
        'name': name,
        'icon': icon,
        'icon_large': iconLarge,
        'path': path,
        'is_open_big': isOpenBig,
        'head_occupy': headOccupy,
        'monitor_status': monitorStatus,
        'is_web_view': isWebView
      };
}
